package com.example.gfsquadwebviewproject.activity;

import android.app.Application;
import android.content.ContextWrapper;
import android.content.SharedPreferences;
import com.example.gfsquadwebviewproject.data.Constant;

public class BaseApplication extends Application {

    String TAG = "BaseApp_Context";
    Constant constant;

    private SharedPreferences mPreferences = null;//自启动数据储存

    @Override
    public void onCreate() {
        super.onCreate();

        //自启动
        mPreferences = getSharedPreferences("AutoStart", ContextWrapper.MODE_PRIVATE);
        SharedPreferences.Editor editor = mPreferences.edit();
        editor.putBoolean("AddToAuto", true);
        editor.commit();

        // 这里实现SDK初始化，appId替换成你的在Bugly平台申请的appId
        // 调试时，将第三个参数改为true
//        Bugly.init(this, "b581c8c9e4", true);

    }

//    @Override
//    protected void attachBaseContext(Context base) {
//        super.attachBaseContext(base);
//        // you must install multiDex whatever tinker is installed!
//        MultiDex.install(base);
//
//
//        // 安装tinker
//        Beta.installTinker();
//    }

}
